package com.ruoyi.article.entity;

import java.util.Objects;

/**
 * @author hlf
 * @createTime 2025/2/25 10:49
 * @description
 */
public class GMapNetCacheId {
    private int type;
    private int zoom;
    private int x;
    private int y;

    // Getters and Setters
    // equals() 和 hashCode() 方法
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GMapNetCacheId that = (GMapNetCacheId) o;
        return type == that.type && zoom == that.zoom && x == that.x && y == that.y;
    }

    @Override
    public int hashCode() {
        return Objects.hash(type, zoom, x, y);
    }
}
